﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Pyramid.Models
{
	/// <summary>
	/// 人体系统
	/// </summary>
	public class HumanBodySystem
	{
		public int Id { get; set; }

		[MaxLength(20)]
		public string Name { get; set; }

		public virtual ICollection<HealthCondition> HealthConditions { get; set; }
	}

	public class HealthCondition
	{
		public int Id { get; set; }
		[MaxLength(20)]
		public string Name { get; set; }
		public int SystemId { get; set; }

		[ForeignKey("SystemId")]
		public virtual HumanBodySystem HumanBodySystem { get; set; }
	}
}